Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the logic for TransactionModal #408

Merged
merged 15 commits into from
May 15, 2024
Merged

Conversation

kkosiorowska
Copy link
Contributor

@kkosiorowska kkosiorowska commented May 9, 2024

⚠️ Merge available after #401 ⚠️

Ref #394

This PR simplifies the logic of opening modal windows and does a refactor for the TransacionModal component. The component of the modal type should be global and should not be rendered inside nested components. The new logic allows to define a modal component only once. This will make it easier to call up the deposit flow from the dashboard and landing page. Previously TransacionModal used contexts by what caused a mess in the component. To manage the state of action flow logic, a special slice was created in the redux store.

Modal is a global component and should be rendered on the top of the components tree. It shouldn't be rendered from the `PositionDetails` level.
@kkosiorowska kkosiorowska self-assigned this May 9, 2024
@kkosiorowska kkosiorowska changed the title Simplifying the logic for TransactionModal Simplify the logic for TransactionModal May 10, 2024
@kkosiorowska kkosiorowska changed the title Simplify the logic for TransactionModal Simplify the logic for TransactionModal May 10, 2024
@kkosiorowska kkosiorowska marked this pull request as ready for review May 10, 2024 07:54
Base automatically changed from clean-deposit-flow to main May 14, 2024 14:17
r-czajkowski
r-czajkowski previously approved these changes May 14, 2024
Copy link

netlify bot commented May 15, 2024

Deploy Preview for acre-dapp-testnet ready!

Name Link
🔨 Latest commit f03702b
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/664446aa4ea6360008b591f1
😎 Deploy Preview https://deploy-preview-408--acre-dapp-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@r-czajkowski r-czajkowski merged commit 6de1079 into main May 15, 2024
25 checks passed
@r-czajkowski r-czajkowski deleted the update-transaction-modal branch May 15, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants